package priv.yiyuan.example.design.device;

/**
 * 投影仪
 * <p>
 * 桥接模式(具体实现者)
 */
public class Projector implements PlaybackDevice {

    private String name;

    public Projector(String name) {
        this.name = name;
    }

    @Override
    public void play(String mediaType, String content) {
        System.out.println(name + " 投影仪播放 " + mediaType + ": " + content);
    }

    @Override
    public void stop() {
        System.out.println(name + " 投影仪停止播放.");
    }
}
